//
//  AppDelegate.h
//  WheatPlan
//
//  Created by giantumbrella on 15/5/21.
//  Copyright (c) 2015年 IOSTeam. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "UserDAL.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
    NSTimer *timer;
}
@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
@property float autoSizeScaleX;
@property float autoSizeScaleY;
@property (strong, nonatomic) UserDAL *user;
+(AppDelegate*)APP;
+(AppDelegate*)shareMyApplication;
//屏幕高度
+ (CGFloat)sharePhoneHeight;
//屏幕宽度
+ (CGFloat)sharePhoneWidth;
//手机自带工具栏高度
+ (CGFloat)sharePhoneBarHeight;
//屏幕高度除去手机工具栏高度
+ (CGFloat)sharePhoneContentHeight;
@end

